import { post, download } from '@/http/request'

/**
 * 预测信息分页查询
 * @param {*} params
 * @returns
 */
export const forecastPageList = params => {
    return post({
        url: '/water/forecast/pageList',
        params
    })
}

/**
 * 预测信息不带分页查询
 * @param {*} params
 * @returns
 */
export function forecastListAll() {
    return post({
        url: '/water/forecast/listAll'
    })
}

/**
 * 预测信息新增数据
 * @param {*} params
 * @returns
 */
export const forecastAdd = params => {
    return post({
        url: '/water/forecast/save',
        params
    })
}

/**
 * 预测信息修改数据
 * @param {*} params
 * @returns
 */
export const forecastUpdate = params => {
    return post({
        url: '/water/forecast/update',
        params
    })
}

/**
 * 预测信息删除数据
 * @param {*} params
 * @returns
 */
export const forecastDel = params => {
    return post({
        url: '/water/forecast/delete',
        params
    })
}

/**
 * 导出数据
 * @param {*} params
 * @returns
 */
export const exportExcel = params => {
    return download({
        url: '/water/forecast/exportExcel',
        params
    })
}

/**
 * 导出数据
 * @param {*} params
 * @returns
 */
export const importExcel = params => {
    return download({
        url: '/water/forecast/exportExcel',
        params
    })
}
